package com.coocaa.app.lib.cleaner.localapp;

import android.content.pm.ApplicationInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by admin on 2016/8/29.
 */
public class XAppInfo {
    private String packageName;
    private int versionCode;
    private String versionName;
    private long firstInstallTime = 0;
    private int flags = 0;
    private boolean isSystemUserId = false;
    private String label;
    private long apkSize = 0;
//    private Drawable icon;
    private List<XLaunchComponent> launchComponents = new ArrayList<XLaunchComponent>();
    private int installLocation = 1;

    public boolean isSystemApp() {
        return ((flags & ApplicationInfo.FLAG_SYSTEM) != 0);
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public int getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public long getFirstInstallTime() {
        return firstInstallTime;
    }

    public void setFirstInstallTime(long firstInstallTime) {
        this.firstInstallTime = firstInstallTime;
    }

    public int getFlags() {
        return flags;
    }

    public void setFlags(int flags) {
        this.flags = flags;
    }

    public boolean isSystemUserId() {
        return isSystemUserId;
    }

    public void setSystemUserId(boolean systemUserId) {
        isSystemUserId = systemUserId;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public long getApkSize() {
        return apkSize;
    }

    public void setApkSize(long apkSize) {
        this.apkSize = apkSize;
    }

//    public Drawable getIcon() {
//        return icon;
//    }
//
//    public void setIcon(Drawable icon) {
//        this.icon = icon;
//    }

    public List<XLaunchComponent> getLaunchComponents() {
        return launchComponents;
    }

    public void setLaunchComponents(List<XLaunchComponent> launchComponents) {
        this.launchComponents = launchComponents;
    }

    public int getInstallLocation() {
        return installLocation;
    }

    public void setInstallLocation(int installLocation) {
        this.installLocation = installLocation;
    }
}
